package com.wyc.serviceMap.controller;

import com.wyc.internalCommon.request.PointDTO;
import com.wyc.internalCommon.result.ApiResult;
import com.wyc.serviceMap.service.PointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 轨迹上传Controller
 */
@RequestMapping("/point")
@RestController
public class PointController {

    @Autowired
    private PointService pointService;

    @RequestMapping("/upload")
    public ApiResult upload(@RequestBody PointDTO pointDTO){
       return pointService.pointUpload(pointDTO);
    }

}
